﻿@{
    ViewBag.Title = "查询部门";
}

<h2>查询部门</h2>

<input placeholder="AccessToken" id="accessToken" />
<input type="button" onclick="Search()" value="查询" />
<div id="List" style="margin-bottom: 10px;"></div>
<script type="text/javascript">
    function Search() {
        var accessToken = $("#accessToken").val();
        $.ajax({
            url: "/Department/List",
            type: "get",
            dataType:"html",
            data: { "accessToken": accessToken },
            success: function (res) {
                $("#List").append(res);
                //window.location.href = "/Department/List";
            }
        });
    }
</script>